package com.gator.desig_mode.factoryMethod.factory;


import com.gator.desig_mode.factoryMethod.car.Car;
import com.gator.desig_mode.factoryMethod.car.ChinaBMW;
import com.gator.desig_mode.factoryMethod.car.ChinaBenz;

/**
 * @author 何章怀晓 hezhanghuaixiao
 * @version V1.0
 * @desc
 */
public class ChinaCarFactory implements CarFactoryBase {



  @Override
  public Car create(String para) {
    if (para.equals("Bmw")) {
      return new ChinaBMW();
    }

    if (para.equals("Benz")) {
      return new ChinaBenz();
    }
    return null;
  }
}
